<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>计算矩形的面积和周长</title>
</head>
<body>
	<jsp:useBean id="rectangle" class="bean.Rectangle" scope="request"></jsp:useBean>
    <jsp:setProperty property="*" name="rectangle"/>
	长：<jsp:getProperty property="length" name="rectangle"/>
            宽：<jsp:getProperty property="width" name="rectangle"/>
           面积：<%=rectangle.calculateArea() %><br>
           周长：<%=rectangle.calculatePerimeter()%>
</body>
</html>